<?php
/**
 * User: 魔十七
 * Date: 2020/11/11
 * Time: 8:30
 */
namespace Samecity\Model;

use Think\Model;

class GoodsModel extends Model
{
    /**
     * 检测商品是否正常
     * @param $goods_id     商品ID
     */
    public function getIsGoods($goods_id)
    {
        $where['id'] = $goods_id;
        $data = M('goods')->where($where)->find();
        return $data;
    }
}